import request from '@/utils/request'

// 查询考勤日历列表
export function listAttendance_calender(query) {
    return request({
        url: '/ehr/attendance_calender/list',
        method: 'get',
        params: query
    })
}

// 查询考勤日历详细
export function getAttendance_calender(calenderId) {
    return request({
        url: '/ehr/attendance_calender/' + calenderId,
        method: 'get'
    })
}

// 新增考勤日历
export function addAttendance_calender(data) {
    return request({
        url: '/ehr/attendance_calender',
        method: 'post',
        data: data
    })
}

// 修改考勤日历
export function updateAttendance_calender(data) {
    return request({
        url: '/ehr/attendance_calender',
        method: 'put',
        data: data
    })
}

// 删除考勤日历
export function delAttendance_calender(calenderId) {
    return request({
        url: '/ehr/attendance_calender/' + calenderId,
        method: 'delete'
    })
}
// 查询年度假期日历
export function getYearCalendarList(year) {
    return request({
        url: '/ehr/attendance_calender/yearCalendarList',
        method: 'get',
        params: {
            'year': year
        }
    })
}
